﻿using System;
using Xtensive.Orm;

namespace NonClusteredPrimaryIndex.Model
{
    /*
     * To get unordered (heap) table, use [HierarchyRoot(Clustered = false)] construct
     * More on this: http://en.wikipedia.org/wiki/Database_storage_structures
     */
    [HierarchyRoot(Clustered = false)]
    public class Book : Entity
    {
        [Field, Key]
        public Guid Id { get; set; }

        [Field]
        public string Title { get; set; }

        [Field]
        public string Isbn { get; set; }

        public Book(Session session) :
            base(session) {}
    }
}